//
//  MLWTipsICookVideoDetailModel.m
//  KITCHEN_STORIES
//
//  Created by 孟令通 on 16/6/12.
//  Copyright © 2016年 MLW. All rights reserved.
//

#import "MLWTipsICookVideoDetailModel.h"

#import "MLWTipsICookStepModel.h"

#import "MLWTipsICookTagInfoModel.h"


@implementation MLWTipsICookVideoDetailModel

- (void)dealloc
{
    [_stepModelArray release];
    [_tagsInfoModelArray release];
    [super dealloc];
}

-(instancetype)initWithDic:(NSDictionary *)dic
{
    
    self = [super initWithDic:dic];
    
    self.stepModelArray = [NSMutableArray array];
    
    self.tagsInfoModelArray = [NSMutableArray array];
    
    for (NSDictionary *dict in self.step) {
        
        MLWTipsICookStepModel *model = [[MLWTipsICookStepModel alloc] initWithDic:dict];
        
        [self.stepModelArray addObject:model];
        [model release];
        
    }
    
    for (NSDictionary *dict in self.tags_info) {
        
        MLWTipsICookTagInfoModel *model = [[MLWTipsICookTagInfoModel alloc] initWithDic:dict];
        
        [self.tagsInfoModelArray addObject:model];
        [model release];
        
    }
    
    return self;
}

@end
